package com.github.rpc4j.consumer.core;

import com.github.rpc4j.common.network.NettyRpcConnection;
import com.github.rpc4j.common.network.RpcConnectionFactory;
import com.github.rpc4j.consumer.clusters.ServiceClustersContext;
import com.github.rpc4j.consumer.zk.ZkUtil;

public class Rpc4jConsumerContext {

	private Rpc4jConsumerConfig config;

	private ZkUtil zkUtil;

	private Rpc4jConsumerContext context;

	private RpcConnectionFactory<NettyRpcConnection> rpcConnectionFactory;

	private ServiceClustersContext serviceClustersContext;

	public Rpc4jConsumerConfig getConfig() {
		return config;
	}

	public void setConfig(Rpc4jConsumerConfig config) {
		this.config = config;
	}

	public ZkUtil getZkUtil() {
		return zkUtil;
	}

	public void setZkUtil(ZkUtil zkUtil) {
		this.zkUtil = zkUtil;
	}

	public Rpc4jConsumerContext getContext() {
		return context;
	}

	public void setContext(Rpc4jConsumerContext context) {
		this.context = context;
	}

	public RpcConnectionFactory<NettyRpcConnection> getRpcConnectionFactory() {
		return rpcConnectionFactory;
	}

	public void setRpcConnectionFactory(
			RpcConnectionFactory<NettyRpcConnection> rpcConnectionFactory) {
		this.rpcConnectionFactory = rpcConnectionFactory;
	}

	public ServiceClustersContext getServiceClustersContext() {
		return serviceClustersContext;
	}

	public void setServiceClustersContext(
			ServiceClustersContext serviceClustersContext) {
		this.serviceClustersContext = serviceClustersContext;
	}

}
